import request from '@/utils/request';

// 获取省信息
export async function getProvinceList(params?: any) {
  // @ts-ignore
  return request('/api/area/provinceList', {params});
}

// 获取市信息
export async function getChildList(params: {pid:string}) {
  // @ts-ignore
  return request('/api/area/childList', { params });
}

// 获取区信息
export async function getAllJson(params: {pid:string}) {
  // @ts-ignore
  return request('/api/area/allJson', { params });
}
